home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / unix / lh_ubugs / lh_u1.bug next >
Encoding:
Text File  |  1990-04-03  |  4.1 KB  |  162 lines

  1. Status: R
  2.  
  3. Article 19 of alt.sources.patches:
  4. Path: world!xylogics!bu.edu!snorkelwacker!usc!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!emv
  5. >From: linden@natasha.fwi.uva.nl (Onno van der Linden)
  6. Newsgroups: alt.sources.patches
  7. Subject: [comp.sources.bugs] lharc fixes
  8. Message-ID: <11465@stag.math.lsa.umich.edu>
  9. Date: 20 Mar 90 20:13:11 GMT
  10. Sender: news@math.lsa.umich.edu
  11. Reply-To: linden@natasha.fwi.uva.nl (Onno van der Linden)
  12. Followup-To: comp.sources.bugs
  13. Lines: 146
  14. X-Original-Newsgroups: comp.sources.bugs
  15.  
  16. Original-posting-by: linden@natasha.fwi.uva.nl (Onno van der Linden)
  17. Original-subject: lharc fixes
  18. Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti)
  19.  
  20. [This is a patch to lharc from comp.sources.bugs.]
  21.  
  22.  
  23.  
  24.  Recently,Harry Langenbacher wrote in the last couple of lines
  25. of his posting:
  26.  
  27. >
  28. >Does anyone know how to get lharc to handle directory names without barfing ?
  29. >
  30. >thanx
  31. >
  32. >
  33. >- Harry Langenbacher 818-354-9513
  34. >harry%neuron1@jpl-mil.jpl.nasa.gov
  35. >harry@neuron1.jpl.nasa.gov 128.149.12.7
  36.  
  37.  Well, below are the diffs I made for lharc.c and it seems to work OK
  38. on a SUN-4 (SPARCstation 1,to be more specific).
  39.  
  40. Onno van der Linden
  41. linden@fwi.uva.nl
  42.  
  43. --------------------------cut here-------------------------------
  44.  
  45. *** lharc.c    Tue Mar 20 10:37:30 1990
  46. --- old/lharc.c    Mon Mar 12 10:38:06 1990
  47. ***************
  48. *** 24,30 ****
  49.   #include <profile.h>
  50.   #endif
  51.   
  52. ! /* #define STRICT */
  53.   #define FASTCOPY
  54.   
  55.   #ifdef MSDOS
  56. --- 24,30 ----
  57.   #include <profile.h>
  58.   #endif
  59.   
  60. ! #define STRICT
  61.   #define FASTCOPY
  62.   
  63.   #ifdef MSDOS
  64. ***************
  65. *** 320,326 ****
  66.   char *myname;
  67.   
  68.   
  69. ! void userbreak()
  70.   {
  71.       error("Interrupt.");
  72.   }
  73. --- 320,326 ----
  74.   char *myname;
  75.   
  76.   
  77. ! void userbreak(void)
  78.   {
  79.       error("Interrupt.");
  80.   }
  81. ***************
  82. *** 459,477 ****
  83.   
  84.   print_tiny_usage_and_exit ()
  85.   {
  86. !   printf("\nC-LHarc for %s Version 1.00   (C) 1989-1990 Y.Tagawa, Kai Uwe Rommel\n\
  87. ! \nUsage: %s {axevlufdmctp}[qnftv] archive_file [files or directories...]\n", SYSNAME, myname);
  88. !   printf("\nCommands:                    Options:\n\
  89. ! a   Append                   q   quiet\n\
  90. ! x,e EXtract                  n   no execute\n\
  91. ! v,l View/List                f   force (over write at extract)\n\
  92. ! u   Update                   t   files are TEXT files\n\
  93. ! f   Freshen                  v<pager>  use file pager for p command\n\
  94. ! d   Delete\n\
  95. ! m   Move\n\
  96. ! c   re-Construct new archive\n\
  97. ! t   Test archive\n\
  98. ! p   Print to STDOUT\n");
  99.     exit (1);
  100.   }
  101.   
  102. --- 459,478 ----
  103.   
  104.   print_tiny_usage_and_exit ()
  105.   {
  106. !   printf("\nC-LHarc for %s Version 1.00   (C) 1989-1990 Y.Tagawa, Kai Uwe Rommel\n"
  107. !          "\nUsage: %s {axevlufdmctp}[qnftv] archive_file [files or directories...]\n",
  108. !          SYSNAME, myname);
  109. !   printf("\nCommands:                    Options:\n"
  110. !          "  a   Append                   q   quiet\n"
  111. !          "  x,e EXtract                  n   no execute\n"
  112. !          "  v,l View/List                f   force (over write at extract)\n"
  113. !          "  u   Update                   t   files are TEXT files\n"
  114. !          "  f   Freshen                  v<pager>  use file pager for p command\n"
  115. !          "  d   Delete\n"
  116. !          "  m   Move\n"
  117. !          "  c   re-Construct new archive\n"
  118. !          "  t   Test archive\n"
  119. !          "  p   Print to STDOUT\n");
  120.     exit (1);
  121.   }
  122.   
  123. ***************
  124. *** 1956,1964 ****
  125.         if (noexec)
  126.           fprintf (stderr, "APPEND %s\n", name);
  127.             else
  128. ! /* #ifdef STRICT */
  129.               if ( !directory )
  130. ! /* #endif */
  131.                 if ( !update_freshen || (cmp == 0) )
  132.                   append_one (fp, nafp, &hdr);
  133.       }
  134. --- 1957,1965 ----
  135.         if (noexec)
  136.           fprintf (stderr, "APPEND %s\n", name);
  137.             else
  138. ! #ifdef STRICT
  139.               if ( !directory )
  140. ! #endif
  141.                 if ( !update_freshen || (cmp == 0) )
  142.                   append_one (fp, nafp, &hdr);
  143.       }
  144. ***************
  145. *** 2041,2048 ****
  146.   #define O_BINARY 0
  147.   #endif
  148.   
  149. ! copy_archive(src,dst)
  150. ! char    *src,*dst;
  151.   {
  152.     int ih, oh;
  153.     unsigned chunk;
  154. --- 2042,2048 ----
  155.   #define O_BINARY 0
  156.   #endif
  157.   
  158. ! copy_archive(char *src, char *dst)
  159.   {
  160.     int ih, oh;
  161.     unsigned chunk;
  162.